﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

using Architecture.CrossCutting.LoggingEntities;
using Architecture.CrossCutting.RepositoryPattern.Logging;
using Architecture.CrossCutting.RepositoryPattern;

namespace Architecture.Presentation.WebApiServices2.Controllers
{
    public class EFLogsController : ApiController
    {

        private IReadOnlyRepository<EFLog> _repository;

        public EFLogsController(IReadOnlyRepository<EFLog> repository)
        {
            _repository = repository;
        }
        // GET api/<controller>
        public IEnumerable<EFLog> Get()
        {
            return _repository.Get();
        }

    }
}